<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>add-product</title>
    <link rel="stylesheet" href="../plugins/layui/layui-v2.5.6/layui/css/layui.css">
</head>
<body>
    <script src="../plugins/layui/layui-v2.5.6/layui/layui.js"></script>
    <script src="../js/add-num.js"></script>
    <script src="../js/add-picture.js"></script>



    <div class="layui-form">
        <div class="layui-form-item">
            <label class="layui-form-label">商品名称</label>
            <div class="layui-input-inline">
                <input type="text" name="name" required  lay-verify="required" placeholder="请输入商品名称" autocomplete="off" class="layui-input">
            </div>
        </div>

        <!-- <div class="layui-form-item">
            <label class="layui-form-label">商品存货</label>
            <div class="layui-input-inline">
                <input type="text" name="tel" required lay-verify="required" placeholder="请输入商品存货" autocomplete="off" class="layui-input">
            </div>
        </div> -->

        <div class="plus-minus">  
            <div class="layui-form-item">  
                <label class="layui-form-label">商品存货</label>  
                <div class="layui-input-block" style="width: 100px;">  
                    <input type="number" name="num" data-step="1" data-maxvalue="20" data-minvalue="1" lay-verify="required" autocomplete="off" class="layui-input num">
                </div>  
            </div>  
        </div>  

        <div class="layui-form-item">
            <label class="layui-form-label">商品单价</label>
            <div class="layui-input-inline">
                <input type="text" name="tel" required lay-verify="required" placeholder="请输入商品单价" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品介绍</label>
            <div class="layui-input-inline">
                <textarea name="" required lay-verify="required" placeholder="请输入商品详情" class="layui-textarea"></textarea>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">图片上传:</label>
            <div class="layui-input-block">
                <div class="layui-upload">
                    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;padding:10px 0 10px 0; ">
                      <div class="layui-upload-list" id="img_upload"></div>
                   </blockquote>
                   <button type="button" class="layui-btn"  style="background-color:#4383d3" id="img_upload_btn">添加图片</button> 
                </div>
                <button id="hideUpload" type="button" style="display: none"></button>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
    </div>
</body>
</html>